package huachenxing.mimi520.main.handlers
{
	import flash.desktop.NativeApplication;
	
	import huachenxing.mimi520.main.Handler;
	import huachenxing.mimi520.resource.Icon;
	
	[ExcludeClass]
	public class DockApplicationHandler extends Handler
	{	
		override protected function exec():void
		{
			Icon;
			
			var application:NativeApplication = NativeApplication.nativeApplication;
			if (!NativeApplication.supportsSystemTrayIcon)
			{
				application.exit(0x80033212);
				return;
			}
			
			root.dock.enabled = true;
			
		}
		
		override protected function dispose():void
		{
		}
	}
}